# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=sdl2_mixer
pkgver=2.6.0
pkgrel=0
pkgdesc="A simple multi-channel audio mixer"
url="http://www.libsdl.org/projects/SDL_mixer/"
arch="all"
license="Zlib"
makedepends="sdl2-dev libvorbis-dev libmikmod-dev mpg123-dev
	libmodplug-dev flac-dev linux-headers"
subpackages="$pkgname-dev"
options="!check" # no test suite
source="$pkgname-$pkgver.tar.gz::https://github.com/libsdl-org/SDL_mixer/archive/refs/tags/release-$pkgver.tar.gz"
builddir="$srcdir/SDL_mixer-release-$pkgver"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--enable-music-mod
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
60c974cbeaba98e8ab3352323260b518e4ca624a5ab67bf75b777e7411797d8086e8e09a71b730269a29affaa0adfa084a4a46e89f089879e1ea25ce18bc683c  sdl2_mixer-2.6.0.tar.gz
"
